package org.springblade.humanResource.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springblade.humanResource.entity.Project;
import org.springblade.humanResource.mapper.ProjectMapper;
import org.springblade.humanResource.service.ProjectService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
@AllArgsConstructor
public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project> implements ProjectService {
	ProjectMapper projectMapper;

	@Override
	public List<Map<String, Object>> getHumanResourceList(Map<String, Object> map) {
		return projectMapper.getHumanResourceList( map );
	}

	@Override
	public Integer getHumanResourceCount(Map<String, Object> map) {
		return projectMapper.getHumanResourceCount( map );
	}

	@Override
	public List<Map<String, Object>> getTaskHumanList(Map<String, Object> map) {
		return projectMapper.getTaskHumanList( map );
	}

	@Override
	public List<Map<String, Object>> getDeptList() {
		return projectMapper.getDeptList();
	}

	@Override
	public List<Map<String, Object>> getBarYData(List<String> months, List<String> deptNames) {
		return projectMapper.getBarYData( months, deptNames );
	}

	@Override
	public List<Map<String, Object>> getPieData(Map<String, Object> map) {
		return projectMapper.getPieData( map );
	}

	@Override
	public List<Map<String, Object>> getMonthUserHourRank(Map<String, Object> map) {
		return projectMapper.getMonthUserHourRank( map );
	}

	@Override
	public List<Map<String, Object>> getUserFreeRank(Map<String, Object> map) {
		return projectMapper.getUserFreeRank( map );
	}
}
